package com.kingbull.web.communic;

public class Head {
    //必填、报文来源的机构的简称。为固定值 ：ZD
    private String source = "ZD";
    //必填、服务编号，详见各个接口
    private String servCode;
    //必填、分子公司ID（详见附录[分子公司ID]）
    private String firmID;
    //必填、报文的id，对于每个报文都有一个标识，这个标识用于标识这笔报文
    private String msgId;
    //必填、报文的发送时间，时间格式为 yyyy-MM-dd HH24:mi:ss,例如2020-01-01 23:59:59
    private String msgTime;
    //必填、结果代码（见附录响应码），最终以系统返回为准
    private String code;
    //用于提示，最终以系统返回为准
    private String ledMsg;
    //用于语音播报提示，最终以系统返回为准
    private String voiceMsg;

    public Head(String servCode, String firmID, String msgId, String msgTime, String code, String ledMsg, String voiceMsg) {
        this.servCode = servCode;
        this.firmID = firmID;
        this.msgId = msgId;
        this.msgTime = msgTime;
        this.code = code;
        this.ledMsg = ledMsg;
        this.voiceMsg = voiceMsg;
    }

    public Head() {
    }

    public void setSource(String source) {
        this.source = source;
    }
    public String getSource() {
        return source;
    }

    public void setServCode(String servCode) {
        this.servCode = servCode;
    }
    public String getServCode() {
        return servCode;
    }

    public void setFirmID(String firmID) {
        this.firmID = firmID;
    }
    public String getFirmID() {
        return firmID;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }
    public String getMsgId() {
        return msgId;
    }

    public void setMsgTime(String msgTime) {
        this.msgTime = msgTime;
    }
    public String getMsgTime() {
        return msgTime;
    }

    public void setCode(String code) {
        this.code = code;
    }
    public String getCode() {
        return code;
    }

    public void setLedMsg(String ledMsg) {
        this.ledMsg = ledMsg;
    }
    public String getLedMsg() {
        return ledMsg;
    }

    public void setVoiceMsg(String voiceMsg) {
        this.voiceMsg = voiceMsg;
    }
    public String getVoiceMsg() {
        return voiceMsg;
    }

    @Override
    public String toString() {
        return "Head{" +
                "source='" + source + '\'' +
                ", servCode='" + servCode + '\'' +
                ", firmID='" + firmID + '\'' +
                ", msgId='" + msgId + '\'' +
                ", msgTime='" + msgTime + '\'' +
                ", code='" + code + '\'' +
                ", ledMsg='" + ledMsg + '\'' +
                ", voiceMsg='" + voiceMsg + '\'' +
                '}';
    }
}
